package com.jiuyue.movehouse.annotion;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface NoRepeatSubmit {

    /**
     * 锁过期的时间
     * */
    int seconds() default 2;

    TimeUnit timeUnit() default TimeUnit.SECONDS;
    /**
     * 锁的位置
     * */
    String key() default "camp:noRepeatSubmit:";
}
